package com.maimeng.Services;

import org.springframework.stereotype.Service;

@Service
public class CacheServiceX {
    private ICache iCache;

    public ICache getiCache() {
        return iCache;
    }

    public void setiCache(ICache iCache) {
        this.iCache = iCache;
    }

    public CacheServiceX(ICache iCache)
    {
        this.iCache = iCache;
    }

    public String getCache(String key)
    {
        return this.iCache.getCache(key);
    }
}
